package com.yyy.dm.consumer.controller;

import com.yyy.dm.CommonResponse;
import com.yyy.dm.consumer.service.SchedulerSeatConsumerService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/scheduler")
public class SchedulerSeatConsumerController {
    @Resource
    private SchedulerSeatConsumerService schedulerSeatConsumerService;
    //getSchedule
    @PostMapping("/seat/getSchedule")
    public CommonResponse getSchedule(@RequestBody Map<String,Long> param){
        return schedulerSeatConsumerService.getSchedule(param.get("cinemaId"),param.get("scheduleId"));
    }
}
